package com.my.controller;

import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @功能
 * @创建时间 2020/6/14
 */
@Controller
public class Login {

    @ApiOperation(value = "登录",notes = "后台登录")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "path",name ="username" ,value = "用户名",required = true),
            @ApiImplicitParam(paramType = "path",name ="password" ,value = "密码",required = true)
    })
    @ApiResponses({
            @ApiResponse(message = "",code = 200),
            @ApiResponse(message = "",code = 401),
            @ApiResponse(message = "",code = 404)
    })
    @RequestMapping("/login_p")
    public String login(){
        return "login_p";
    }
}
